package com.orm.test;

import com.orm.base.MyMapper;
import com.orm.base.wrapper.MyLambdaQueryWrapper;

import java.util.List;

public interface UserMapper extends MyMapper<UserEntity> {
    default List<UserEntity> selectByName(String userName) {
        MyLambdaQueryWrapper<UserEntity> queryWrapper = new MyLambdaQueryWrapper<>();
        queryWrapper.eq(UserEntity::getName, userName);
        return  selectList(queryWrapper);
    }
}
